package io.terminus.spzx.model.entity.system;

import io.swagger.v3.oas.annotations.media.Schema;
import io.terminus.spzx.model.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 系统日志Entity实体类
 * @Date 2024-03-10
 */
@Data
@Schema(description = "SysOperLog")
@EqualsAndHashCode(callSuper = true)
public class SysOperLog extends BaseEntity {

    @Schema(description = "模块标题")
    private String title;

    @Schema(description = "方法名称")
    private String method;

    @Schema(description = "请求方式")
    private String requestMethod;

    @Schema(description = "业务类型（0:其它; 1:新增; 2:修改; 3:删除）")
    private Integer businessType;

    @Schema(description = "操作类别（0: 其它; 1:后台用户; 2:手机端用户）")
    private String operatorType;

    @Schema(description = "操作人员")
    private String operName;

    @Schema(description = "请求URL")
    private String operUrl;

    @Schema(description = "主机地址")
    private String operIp;

    @Schema(description = "请求参数")
    private String operParam;

    @Schema(description = "返回参数")
    private String jsonResult;

    @Schema(description = "操作状态（0: 正常; 1: 异常）")
    private Integer status;

    @Schema(description = "错误消息")
    private String errorMsg;

}